package com.btex.app.adapter;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.Log;
import android.widget.ImageView;

import com.btex.app.R;
import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * @author zy zhangyi <zhangyi, 1104745049@QQ.com
 * @version v1.0
 * @project study1
 * @Description
 * @encoding UTF-8
 * @date 2018/8/17
 * @time 下午5:54
 * @修改记录 <pre>
 * 版本       修改人         修改时间         修改内容描述
 * --------------------------------------------------
 * <p>
 * --------------------------------------------------
 * </pre>
 */

public class OTCItemListAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    private Context mContext;

    public OTCItemListAdapter(@Nullable List<String> data, Context context) {
        super(R.layout.otc_item_list, data);
        mContext = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {

        ImageView view = (ImageView) helper.getView(R.id.otc_item_list_imag);

        Log.i("wkejnfkwefuhiw", item);

        Glide.with(mContext).load(item).into(view);


    }
}
